package com.TeamJigsaw.DanteTrail.Models;
import javax.swing.ImageIcon;
/**
 * Represents a checkpoint or stop on the trail
 * @author Victor Lee
 *
 */
public class Checkpoint {
	
	private String name;
	
	private int location;
	
	private ImageIcon image;
	
	private int level;
	
	/**
	 * Initializes and creates the instance variables for a Checkpoint
	 * @param name
	 * @param location
	 */
	public Checkpoint(String name, int location, ImageIcon image, int level) {
		this.name = name;
		this.location = location;
		this.image = image;
		this.level = level;
	}

	/**
	 * Gets and returns the location of this checkpoint
	 * @return The location of this checkpoint
	 */
	public int getLocation() {
		return location;
	}
	
	/**
	 * Gets and returns the name of the checkpoint
	 * @return The name of the checkpoint
	 */
	public String getName(){
		return name;
	}
	
	/**
	 * String representation of the Checkpoint
	 * @return the String representation
	 */
	@Override
	public String toString(){
		return ""+name;
	}
	
	/**
	 * Gets and returns the image of the checkpoint
	 * @return The checkpoint's image
	 */
	public ImageIcon getImage(){
		return image;
	}
	
	/**
	 * Gets and returns the level of the checkpoint
	 * @return The level of the checkpoint
	 */
	public int getLevel() {
		return level;
	}
}
